


/*删除*/
function OperateDel(url) {
    layer.confirm('您确定要进行删除操作?', {btn: ['确定', '取消'], title: "提示"}, function () {
        $.ajax({
            url: url,
            type: 'post',
            dataType: 'json',
            success: function (data) {
                console.log(data);
                layer.msg(data.msg, {
                    icon: 6,
                    time: 500,
                }, function () {
                    window.location.reload();
                })
            }
        })
    });
}

function OperateStop(url) {
    layer.confirm('您确定要进行操作?', {btn: ['确定', '取消'], title: "提示"}, function () {
        $.ajax({
            url: url,
            type: 'post',
            dataType: 'json',
            success: function (data) {
                console.log(data);
                layer.msg(data.msg, {
                    icon: 6,
                    time: 500,
                }, function () {
                    window.location.reload();
                })
            }
        })
    });
}